package com.my12306.common.constant;

/**
 * @Author:苏牧夕
 * @Date:2020/5/13 2:22
 * @Version 1.0
 */
public class RedisConstants {
    //默认缓存有效时间为48小时，单位s
    public static final long DEFAULT_EXPIRE = 60 * 60 * 48;
    //无缓存时间判断标记
    public static final long NON_EXPIRE = -1;
    //缓存null对象的有效时间为3分钟
    public static final long NULL_EXPIRE = 60 * 3;
    //缓存null 对象
    public static final String NullObject = "null";
    //变量自减默认值
    public static final long DECREATE_VALUE = 1;
    //变量自增默认值
    public static final long INCREATE_VALUE = 1;
    //随机因子,防止缓存雪崩
    public static final int RANDOM_FACTHOR = 1000;
}
